package com.app.medicalcontrol.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by otis on 2018/5/8.
 */

public class RobotListBean extends BaseListBean {


    private List<Robot> data;
    public List<Robot> getData() {
        return data;
    }

    public void setData(List<Robot> data) {
        this.data = data;
    }

    public void addListBean(RobotListBean listbean) {
        if (listbean == null)
            return;
        if (this.getCurrentPage() == INIT_PAGE) {
            setData(listbean.getData());
        } else {
            if (data == null)
                data = new ArrayList<Robot>();
            data.addAll(listbean.getData());
        }
        setListBeanData(listbean);
    }

}
